package com.lianqi.emcpframework.ddd.gencode.process;

import javax.annotation.processing.SupportedSourceVersion;
import javax.lang.model.SourceVersion;

import com.lianqi.emcpframework.ddd.gencode.plugin.GenApplicationPlugin;
import com.lianqi.emcpframework.ddd.gencode.plugin.GenCreatorPlugin;
import com.lianqi.emcpframework.ddd.gencode.plugin.GenUpdaterPlugin;
import com.lianqi.emcpframework.ddd.gencode.plugin.ProcessorPlugin;

/**
 * @program
 * @ClassName DDDCodeGenProcessor
 * @description: 领域驱动设计 代码生成类
 * @author: sky
 * @create: 2019-06-13 15:01
 */
@SupportedSourceVersion(SourceVersion.RELEASE_8)
public class DDDCodeGenProcessor extends AbstractCodeGenProcessor {
    /**
     * @Fields: 代码生成插件
     */
    private final ProcessorPlugin[] plugins = new ProcessorPlugin[] {
        // new GenCodeBasedEnumConverterPlugin(),
        // new GenDtoPlugin(),
        new GenCreatorPlugin(), new GenUpdaterPlugin(), new GenApplicationPlugin()
        // ,new GenRepositoryPlugin()
    };

    @Override
    ProcessorPlugin[] getPlugins() {
        return this.plugins;
    }

}
